<?php
namespace Hdphp\Libs;
class Controller{
    /**
     * 成功提示
     */
    public function success($msg,$url){
        include "Public/success.html";
    }
    /**
     * 失败提示
     */
    public function error($msg,$url=null){

        $url = is_null($url)? $_SERVER['HTTP_REFERER'] : $url;
        include "Public/error.html";
    }
}
